package com.tzy.rpc.api;/**
 * @description:
 * @Author HP
 * @create 2022/3/8 14:23
 */

import java.io.Serializable;
import java.util.Objects;

/**
 * @author HP
 * @create 2022-03-08 14:23
 * @desc
 **/

public class HelloObject implements Serializable {
    private Integer id;
    private String msg;

    public HelloObject(Integer id, String msg) {
        this.id = id;
        this.msg = msg;
    }

    public HelloObject() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        HelloObject object = (HelloObject) o;
        return Objects.equals(id, object.id) && Objects.equals(msg, object.msg);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, msg);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
